<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title><?php echo ($title); ?></title>
    <link rel="stylesheet" href="/Public/web/css/pintuer.css">
    <link rel="stylesheet" href="/Public/web/css/admin.css">
    <script src="/Public/web/js/jquery.js"></script>
    <script src="/Public/web/js/pintuer.js"></script>
</head>


<body>
  <div class="panel admin-panel">
    <div class="panel-head"><strong><span class="icon-pencil-square-o"></span> 上传小程序</strong></div>
    <div class="body-content">
      <form method="post" class="form-x" enctype="multipart/form-data">
        <div class="form-group">
          <div class="label">
            <label>模板选择：</label>
          </div>
          <div class="field">
            <input type="text" name="template_id" class="input w50" value="<?php echo ($info['template_id']); ?>"/>

            <!--<select name="template_id" class="input w50">
              <?php if(is_array($templateid)): foreach($templateid as $key=>$v): ?><option value="<?php echo ($v['templateid']); ?>" <?php if($v['templateid'] == $info['template_id']): ?>selected="selected"<?php endif; ?>><?php echo ($v['temp_titel']); ?></option><?php endforeach; endif; ?>
            </select>-->
            <div class="tips"></div>
          </div>
        </div>
        <input type="hidden"  value="<?php echo ($style['s_id']); ?>" name="s_id" />　    
        <div class="form-group">
            <div class="label"><label>标题</label></div>
            <div class="field">
                <input type="text" class="input w50" value="<?php echo ($style['title']); ?>" name="title" />　
              
                <div class="tips"></div>
            </div>
        </div>
        <div class="form-group">
            <div class="label"><label>标题颜色</label></div>
            <div class="field">
                <select name="title_color" >
                    <?php if($style['title_color'] == '#ffffff'): ?><option value = "#ffffff" selected = "#000000">白色</option>
                        <?php else: ?> 
                        <option value = "#ffffff" >白色</option><?php endif; ?>
                    <?php if($style['title_color'] == '#000000'): ?><option value = "#000000" selected = "#000000">黑色</option>
                        <?php else: ?> 
                        <option value = "#000000">黑色</option><?php endif; ?>
                </select>
            </div>
        </div>
        <div class="form-group">
            <div class="label"><label>标题背景颜色</label></div>
            <div class="field">
                  <input type="color" name="title_bg" style="border: solid 1px #ddd;height: 40px;" value="<?php echo ($style['title_bg']); ?>"/>　
                <div class="tips"></div>
            </div>
        </div>
        <div class="form-group">
            <div class="label"><label>店铺头部颜色/购物车栏颜色</label></div>
            <div class="field">
                <input type="color" name="store_bg" style="border: solid 1px #ddd;height: 40px;" value="<?php echo ($style['store_bg']); ?>"/>　
                <div class="tips"></div>
            </div>
        </div>

        <div class="form-group">
            <div class="label"><label>店铺名颜色</label></div>
            <div class="field">
                <input type="color" name="store_name_color" style="border: solid 1px #ddd;height: 40px;" value="<?php echo ($style['store_name_color']); ?>"/>　
                <div class="tips"></div>
            </div>
        </div>
       <!--  <div class="form-group">
            <div class="label"><label>底部导航1/地址：</label></div>
            <div class="field">
                <input type="text" class="input w50" name="listpp0" value="<?php echo ($info['ext_json']['tabBar']['list'][0]['pagePath']); ?>"/>
                <input type="text" class="input w50" name="listt0" value="<?php echo ($info['ext_json']['tabBar']['list'][0]['text']); ?>"/>
            </div>
        </div>
        <div class="form-group">
            <div class="label"><label>底部导航2/地址：</label></div>
            <div class="field">
                <input type="text" class="input w50" name="listpp1" value="<?php echo ($info['ext_json']['tabBar']['list'][1]['pagePath']); ?>"/>
                <input type="text" class="input w50" name="listt1" value="<?php echo ($info['ext_json']['tabBar']['list'][1]['text']); ?>"/>
            </div>
        </div>
        <div class="form-group">
            <div class="label"><label>底部导航3/地址：</label></div>
            <div class="field">
                <input type="text" class="input w50" name="listpp2" value="<?php echo ($info['ext_json']['tabBar']['list'][2]['pagePath']); ?>"/>
                <input type="text" class="input w50" name="listt2" value="<?php echo ($info['ext_json']['tabBar']['list'][2]['text']); ?>"/>
            </div>
        </div>
        <div class="form-group">
            <div class="label"><label>底部导航4/地址：</label></div>
            <div class="field">
                <input type="text" class="input w50" name="listpp3" value="<?php echo ($info['ext_json']['tabBar']['list'][3]['pagePath']); ?>"/>
                <input type="text" class="input w50" name="listt3" value="<?php echo ($info['ext_json']['tabBar']['list'][3]['text']); ?>"/>
            </div>
        </div>
        <div class="form-group">
            <div class="label"><label>底部导航5/地址：</label></div>
            <div class="field">
                <input type="text" class="input w50" name="listpp4" value="<?php echo ($info['ext_json']['tabBar']['list'][4]['pagePath']); ?>"/>
                <input type="text" class="input w50" name="listt4" value="<?php echo ($info['ext_json']['tabBar']['list'][4]['text']); ?>"/>
            </div>
        </div>
        
 -->

        <div class="form-group">
          <div class="label">
            <label></label>
          </div>
          <div class="field">
            <button class="button bg-main icon-check-square-o" type="submit"> 上传</button>
          </div>
        </div>
      </div>
    </from>
  </div>
</body>

</html>